package com.group10.controller;

import com.group10.entity.Result;
import com.group10.service.impl.EthnicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ethnic")
public class EthnicController {

    @Autowired
    EthnicServiceImpl ethnicService;

    @GetMapping("/getAllEthnic")
    public Result<?> getAllEthnic(){
        return ethnicService.getAllEthnic();
    }
}
